-- GENERATED SPELL FOR [Rotting Ghoul] --


function spell0_1793(pUnit, Event) --@Contagion of Rot,n/a--
pUnit:FullCastSpellOnTarget(7102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1793', 537, 1)
end

function Sorts_1793(pUnit, Event)
local choix_sorts_1793 = math.random(0, 0)
if choix_sorts_1793 == 0 then
pUnit:RegisterEvent('spell0_1793', 1, 1)
end
end

function mob1793_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1793', math.random(1500, 3000), 1)
end

function mob1793_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1793_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1793_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1793, 1, 'mob1793_Action')
RegisterUnitEvent(1793, 2, 'mob1793_Leave')
RegisterUnitEvent(1793, 3, 'mob1793_Kill')
RegisterUnitEvent(1793, 4, 'mob1793_Die')
